<%@page import="java.util.Iterator"%>
<%@page import="java.util.ArrayList"%>
<%@page import="com.imut.bean.Link"%>
<%@page import="java.util.List"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<html>

<head>
<title>课程设计资源网</title>
<meta name="keywords" content="课程设计资源网">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<link rel="stylesheet" type="text/css" href="show/css/style.css">
<link rel="stylesheet" type="text/css" href="show/css/index.css">
<link rel="stylesheet" type="text/css" href="show/css/rili.css">
</head>

<body target="">
	<!-- 头部区域 -->
	<a href="index/jxdt.htm"></a>
	<a href="index/tzgg_gs.htm"></a>
	<a href="index/bkjxgzlc.htm"></a>
	<a href="index/jxdt.htm"></a>
	<div id="head">
		<div id="header">
			<div class="logo">
				<table border="0" cellspacing="0" cellpadding="0">
					<tbody>
						<tr>
							<td><img src="show/images/logo.png" border="0" alt="教务处"
								title="教务处" style="width: 300px; height: 80px;"></td>
						</tr>
					</tbody>
				</table>



			</div>
			<div class="head_right">
				<script language="javascript">
					function dosuba57045a() {
						try {
							var ua = navigator.userAgent.toLowerCase();
							if (ua.indexOf("msie 8") > -1) {
								window.external.AddToFavoritesBar(
										document.location.href, document.title,
										"");//IE8
							} else if (ua.toLowerCase().indexOf("rv:") > -1) {
								window.external.AddToFavoritesBar(
										document.location.href, document.title,
										"");//IE11+
							} else {
								if (document.all) {
									window.external.addFavorite(
											document.location.href,
											document.title);
								} else if (window.sidebar) {
									window.sidebar.addPanel(document.title,
											document.location.href, "");//firefox
								} else {
									alert(hotKeysa57045a());
								}
							}

						} catch (e) {
							alert("无法自动添加到收藏夹，请使用 Ctrl + d 手动添加");
						}
					}
					function hotKeysa57045a() {
						var ua = navigator.userAgent.toLowerCase();
						var str = "";
						var isWebkit = (ua.indexOf('webkit') != -1);
						var isMac = (ua.indexOf('mac') != -1);
						if (ua.indexOf('konqueror') != -1) {
							str = 'CTRL + B'; // Konqueror   
						} else if (window.home || isWebkit || isMac) {
							str = (isMac ? 'Command/Cmd' : 'CTRL') + ' + D'; // Netscape, Safari, iCab, IE5/Mac   
						}
						return ((str) ? '无法自动添加到收藏夹，请使用' + str + '手动添加' : str);
					}
					function setHomepagea57045a() {
						var url = document.location.href;
						if (document.all) {
							document.body.style.behavior = 'url(#default#homepage)';
							document.body.setHomePage(url);
						} else if (window.sidebar) {
							if (window.netscape) {
								try {
									netscape.security.PrivilegeManager
											.enablePrivilege("UniversalXPConnect");
								} catch (e) {
									alert("该操作被浏览器拒绝，如果想启用该功能，请在地址栏内输入 about:config,然后将项 signed.applets.codebase_principal_support 值该为true");
								}
							}
							var prefs = Components.classes['@mozilla.org/preferences-service;1']
									.getService(Components.interfaces.nsIPrefBranch);
							prefs.setCharPref('browser.startup.homepage', url);
						} else {
							alert("浏览器不支持自动设为首页，请手动设置");
						}
					}
				</script>
				<script type="text/javascript">
					function _nl_ys_check() {

						var keyword = document
								.getElementById('showkeycode57007').value;
						if (keyword == null || keyword == "") {
							alert("请输入你要检索的内容！");
							return false;
						}
						if (window.toFF == 1) {
							document.getElementById("lucenenewssearchkey57007").value = Simplized(keyword);
						} else {
							document.getElementById("lucenenewssearchkey57007").value = keyword;
						}
						var base64 = new Base64();
						document.getElementById("lucenenewssearchkey57007").value = base64
								.encode(document
										.getElementById("lucenenewssearchkey57007").value);
						new VsbFormFunc().disableAutoEnable(document
								.getElementById("showkeycode57007"));
						return true;
					}
				</script>
			</div>
		</div>
		<!-- 导航栏 -->
		<div id="nav" style="position: relative; z-index: 9999">
			<ul class="nav_list">

				<script type="text/javascript">
					function display(name) {
						//alert(name);
						var node = document.getElementsByName(name);
						//alert(node.length);
						node[0].style.display = "block";
					}

					function hidd(name) {
						var node = document.getElementsByName(name);
						node[0].style.display = "none";
					}
				</script>

				<c:forEach var="i" items="${requestScope.listup }">
					<li class="li1"><a href="${i.lkplace }" target="_blank">${i.lkname }
					</a></li>
				</c:forEach>

			</ul>
		</div>
		<!--<div style="width: 1040px;margin:10px auto;"><a href="/system/go.jsp?treeid=1062&apptype=treetemp&urltype=tree.TreeTempUrl"><img src="/images/2018shenbao.jpg" /></a></div> -->

		<div id="xlnr" style="display: none">国庆节放假通知 @2015-09-30; 教学工作会议
			@2015-09-29; 教学评估准备会议 @2015-10-16; 勿忘911-反对恐怖主义 @2015-09-11; 教师节通知
			@2015-09-13; 测试校历显示 @2015-09-15;</div>
		<script type="text/javascript">
			var isShow = false;

			function xs(e) {
				var a = e + 'b';
				$("#" + a).show();
			}
			function yc(e) {
				var a = e + 'b';
				$("#" + a).hide();
			}
			var getValue = function(id) {
				return "string" == typeof id ? document.getElementById(id) : id;
			};
			var Class = {
				create : function() {
					return function() {
						this.initialize.apply(this, arguments);
					}
				}
			}
			var Extend = function(destination, source) {
				for ( var property in source) {
					destination[property] = source[property];
				}
				return destination;
			}
			var Calendar = Class.create();
			Calendar.prototype = {
				initialize : function(container, options) {
					this.Container = getValue(container);//容器(table结构)
					this.Days = [];//日期对象列表
					this.SetOptions(options);
					this.Year = this.options.Year || new Date().getFullYear();
					this.Month = this.options.Month || new Date().getMonth()
							+ 1;
					this.SelectDay = this.options.SelectDay ? new Date(
							this.options.SelectDay) : null;
					this.onSelectDay = this.options.onSelectDay;
					this.onToday = this.options.onToday;
					this.onFinish = this.options.onFinish;
					this.Draw();
				},
				//设置默认属性
				SetOptions : function(options) {
					this.options = {//默认值
						Year : 0,//显示年
						Month : 0,//显示月
						SelectDay : null,//选择日期
						onSelectDay : function() {
						},//在选择日期触发
						onToday : function() {
						},//在当天日期触发
						onFinish : function() {
						}//日历画完后触发
					};
					Extend(this.options, options || {});
				},
				//当前月
				NowMonth : function() {
					this.PreDraw(new Date());
				},
				//上一月
				PreMonth : function() {
					this.PreDraw(new Date(this.Year, this.Month - 2, 1));
				},
				//下一月
				NextMonth : function() {
					this.PreDraw(new Date(this.Year, this.Month, 1));
				},
				//上一年
				PreYear : function() {
					this.PreDraw(new Date(this.Year - 1, this.Month - 1, 1));
				},
				//下一年
				NextYear : function() {
					this.PreDraw(new Date(this.Year + 1, this.Month - 1, 1));
				},
				//根据日期画日历
				PreDraw : function(date) {
					//再设置属性
					this.Year = date.getFullYear();
					this.Month = date.getMonth() + 1;
					//重新画日历
					this.Draw();
				},
				//画日历
				Draw : function() {
					var str = document.getElementById("xlnr").innerHTML;
					//用来保存日期列表
					var arr = [];
					var arry = str.split(";");
					var obj = [];

					for (var i = 0; i < arry.length - 1; i++) {
						obj.push({
							date : new Date(
									arry[i].split("@")[1].split("-")[0],
									arry[i].split("@")[1].split("-")[1] - 1,
									arry[i].split("@")[1].split("-")[2]),
							ul : "<ul><li>" + arry[i].split("@")[0]
									+ "</li></ul>"
						});
					}
					//用当月第一天在一周中的日期值作为当月离第一天的天数
					for (var i = 1, firstDay = new Date(this.Year,
							this.Month - 1, 1).getDay(); i <= firstDay; i++) {
						arr.push(0);
					}
					//用当月最后一天在一个月中的日期值作为当月的天数
					for (var i = 1, monthDay = new Date(this.Year, this.Month,
							0).getDate(); i <= monthDay; i++) {
						arr.push(i);
					}
					//清空原来的日期对象列表
					this.Days = [];
					//插入日期
					var frag = document.createDocumentFragment();
					while (arr.length) {
						//每个星期插入一个tr
						var row = document.createElement("tr");
						//每个星期有7天
						for (var i = 1; i <= 7; i++) {
							var cell = document.createElement("td");
							cell.innerHTML = " ";
							if (arr.length) {
								var d = arr.shift();
								if (d) {
									//ajax请求  参数   1.this.Year 数据年份   2. this.Month - 1 数据月份
									//var obj=[{date:new Date(this.Year, this.Month - 1, 5),ul:"<ul><li>1</li><li>2</li></ul>"},{date:new Date(this.Year, this.Month - 1, 4),ul:"<ul><li>3</li><li>4</li></ul>"}];

									var on = new Date(this.Year,
											this.Month - 1, d);
									var bool = false;//用来标记这个日期是不是特殊日期
									var ul;
									var numId;
									for (var c = 0; c < obj.length; c++) {
										if (this.IsSame(on, obj[c].date)) {
											bool = true;
											ul = obj[c].ul;
											numId = c;
											break;
										}
									}
									if (bool) {//是特殊日期就加特殊日期的样式
										cell.innerHTML = "<div style='position:relative;' id='teshu' ><a class='zpxs' id='a"
												+ numId
												+ "' onmouseover='xs(this.id)' onmouseout='yc(this.id)'>"
												+ d
												+ "</a><div id='a" + numId + "b' style='position:absolute;width:190px;height:atuo;padding:5px;left:43px;bottom:40px;z-index:9999;background:#cdd0dd;color:#4c5373;display:none;text-align:left;'>"
												+ ul + "</div></div>";
									} else {//不是特殊日期就加不是特殊日期的样式 
										cell.innerHTML = d;
									}

									this.Days[d] = cell;

									//判断是否今日
									this.IsSame(on, new Date())
											&& this.onToday(cell);
									//判断是否选择日期
									this.SelectDay
											&& this.IsSame(on, this.SelectDay)
											&& this.onSelectDay(cell);
								}
							}
							row.appendChild(cell);
						}
						frag.appendChild(row);
					}
					//先清空内容再插入(ie的table不能用innerHTML)
					while (this.Container.hasChildNodes()) {
						this.Container.removeChild(this.Container.firstChild);
					}
					this.Container.appendChild(frag);
					//附加程序
					this.onFinish();
				},
				//判断是否同一日
				IsSame : function(d1, d2) {
					return (d1.getFullYear() == d2.getFullYear()
							&& d1.getMonth() == d2.getMonth() && d1.getDate() == d2
							.getDate());
				}

			}
		</script>
		<!-- 内容区域 -->
		<div class="content">
			<div class="content2">
				<%
				String divclass = null;
				//content2_R pub
				//content2_L pub cur
				%>
				<c:forEach var="i" items="${requestScope.listclassify }">
				<%
					if(divclass == null || divclass.equals("content2_L pub cur")){
						divclass = "content2_R pub";
					}else{
						divclass = "content2_L pub cur";
					}
				%>
					<div class="<%=divclass %>" style="margin-right: 13px">
						<h2>
							<strong>${i.classname }</strong>
						</h2>
						<ul class="list">
							<c:forEach var="j" items="${requestScope.listarticle }">
								<c:if test="${i.classname == j.classname }">
									<li><a href="ShowAimContentServlet?id=${j.id }" target="_blank"> ${j.title }</a></li>
								</c:if>
							</c:forEach>
						</ul>
					</div>
				</c:forEach>			
			</div>
			<!-- 日历开始 -->
			<div class="content1R">
				<div id="zprl">
					<div class="Calendar">
						<div class="dyh">
							<span class="xiaoli">日历</span>
							<div id="idCalendarPre"></div>
							<div class="rlwz">
								<span id="idCalendarYear">2020</span> - <span
									id="idCalendarMonth">12</span>
							</div>
							<div id="idCalendarNext"></div>
						</div>
						<table cellspacing="0">
							<thead>
								<tr>
									<td>日</td>
									<td>一</td>
									<td>二</td>
									<td>三</td>
									<td>四</td>
									<td>五</td>
									<td>六</td>
								</tr>
							</thead>
							<tbody id="idCalendar">
								<tr>
									<td></td>
									<td></td>
									<td>1</td>
									<td>2</td>
									<td>3</td>
									<td>4</td>
									<td>5</td>
								</tr>
								<tr>
									<td>6</td>
									<td>7</td>
									<td>8</td>
									<td>9</td>
									<td>10</td>
									<td>11</td>
									<td>12</td>
								</tr>
								<tr>
									<td>13</td>
									<td>14</td>
									<td>15</td>
									<td>16</td>
									<td>17</td>
									<td>18</td>
									<td>19</td>
								</tr>
								<tr>
									<td>20</td>
									<td>21</td>
									<td>22</td>
									<td>23</td>
									<td>24</td>
									<td>25</td>
									<td>26</td>
								</tr>
								<tr>
									<td>27</td>
									<td>28</td>
									<td>29</td>
									<td>30</td>
									<td class="onToday">31</td>
									<td></td>
									<td></td>
								</tr>
							</tbody>
						</table>
					</div>
					<!--<div id="buttonposition" >
                    <input id="idCalendarPreYear" type="button" class="bt" value="上一年" />
                    <input id="idCalendarNow" type="button" class="bt" value="当前月" />
                    <input id="idCalendarNextYear" type="button" class="bt" value="下一年" />
                    </div>-->
					<script language="JavaScript">
						var cale = new Calendar(
								"idCalendar",
								{
									onToday : function(o) {
										o.className = "onToday";
									},
									onFinish : function() {
										getValue("idCalendarYear").innerHTML = this.Year;
										getValue("idCalendarMonth").innerHTML = this.Month;
									}
								});
						getValue("idCalendarPre").onclick = function() {
							cale.PreMonth();
						}
						getValue("idCalendarNext").onclick = function() {
							cale.NextMonth();
						}
					</script>
				</div>
			</div>
			<!-- 日历结束 -->
			<!-- 			<div class="content2"> -->


			<!-- 			</div> -->

		</div>
		<div></div>
		<!-- 底部区域 -->
		<style type="text/css">
/*
* {
	font-family: "Microsoft YaHei", 微软雅黑, 宋体, 黑体, "Helvetica Neue", Tahoma,
		Arial, "Hiragino Sans GB";
	margin: auto;
}
*/
.footer {
	height: 250px;
	background-color: #015293;
	box-sizing: border-box;
	padding-top: 20px;
	margin-top: 40px;
}

.footer a:hover {
	opacity: 0.8;
}

.footer .YouLink li {
	float: left;
	margin-right: 12px;
	text-align: center;
	background-color: #0765a8;
	cursor: pointer;
	box-sizing: border-box;
	position: relative;
	border-top: 10px solid #015293;
	list-style-type: none;
}

.footer  .YouLink li a {
	height: 38px;
	line-height: 38px;
	font-size: 15px;
	color: #b8c6d8;
	display: inline-block;
	text-decoration: none;
}

.footer .YouLink li.li1 {
	width: 120px;
}

.clearfix {
	*zoom: 1;
}

.container {
	width: 1280px;
	margin: 0 auto;
	margin-top: 0px;
	margin-right: auto;
	margin-bottom: 0px;
	margin-left: auto;
}

.clearfix:before, .clearfix:after {
	content: '';
	display: table;
}

.clearfix:after {
	clear: both;
}

.clearfix {
	*zoom: 1; /*IE/7/6*/
}

.footer .bottom {
	height: 182px;
	box-sizing: border-box;
	padding-top: 50px;
}

.footer .bottom .left {
	float: left;
	width: 186px;
	background: url(../images/bottomImg2.png) no-repeat right 5px;
}

.footer .bottom .left_l {
	float: left;
}

.footer .bottom .left_r {
	float: right;
	width: 90px;
}

.footer .bottom .left_r a {
	display: block;
	font-size: 15px;
	color: #b8c6d8;
	margin-bottom: 17px;
	text-decoration: none;
}

.footer .bottom .middle {
	float: left;
	width: 861px;
	box-sizing: border-box;
	padding-left: 36px;
	background: url(../images/bottomImg2.png) no-repeat right 5px;
}

.footer .bottom .middle * {
	font-size: 15px;
	color: #b8c6d8;
}

.footer .bottom .middle a {
	text-decoration: none;
}

.footer .bottom .middle p {
	margin-bottom: 16px;
}

.footer .bottom .middle img {
	vertical-align: middle;
	margin-right: 7px;
}

.footer .bottom .right {
	position: relative;
	top: -9px;
	float: right;
	width: 200px;
}

.footer .bottom .right img {
	display: block;
	width: 81px;
	height: 81px;
	margin-left: 7px;
	margin-bottom: 9px;
}

.footer .bottom .right_l {
	float: left;
}

.footer .bottom .right_r {
	float: right;
	margin-right: 5px;
}

.footer .bottom .right p {
	font-size: 15px;
	color: #b8c6d8;
	text-align: center;
}
</style>

		<div id="footer" class="footer">
			<div class="container clearfix">
				<!--友情链接-->
				<div class="YouLink">
					<ul class="clearfix">
						<c:forEach var="i" items="${requestScope.listbottom }">
							<li class="li1"><a href="${i.lkplace }" target="_blank">${i.lkname }
							</a></li>
						</c:forEach>
						<%
							// 							List<Link> list = (ArrayList<Link>) request.getAttribute("list");
						// 							if (list != null) {
						// 								Iterator<Link> it = list.iterator();
						// 								while (it.hasNext()) {
						// 									Link link = it.next();
						// 									pageContext.setAttribute("link", link);
						%>

						<%
							// 								}
						// 							}
						%>
					</ul>
				</div>
				<!--友情链接结束-->
				<div class="bottom clearfix">
					<div class="left">
						<div class="left_l">
							<a href="http://www.imut.edu.cn/" target="_blank"> <img
								src="show/images/imut.png"
								style="display: block; height: 90px; width: 90px; border-right: solid white 1px;" />
							</a>
						</div>
						<div class="left_r">
							<a href="" target="_blank">网站声明</a> <a href="" target="_blank">联系我们</a>
							<a href="http://localhost:8080/WCMS/login/login.jsp" target="_blank">后台管理系统</a>
						</div>
					</div>
					<div class="middle">
						<p>项目经理开发人员：包雪峰&emsp;&emsp;开发人员：王雪辉 王东帅 袁宏艳</p>
						<p>
							蒙ICP备00000666号&emsp;&emsp; <img src="" /> <a href=""
								target="_blank" text-decoration="none">蒙公网安备66666666666666号</a>
							&emsp;&emsp;网站标识码：6666666666&emsp;&emsp;
						</p>
						<p>本网站发布的所有信息均不收取任何费用如遇到任何以本网站名义收取费用的情况请向IMUTRJ18-1NO.9举报</p>
					</div>
					<div class="right">
						<div class="right_l">
							<img src="show/images/qq.jpg" />
							<p>小组联系方式</p>
						</div>
						<div class="right_r">
							<img src="show/images/SchoolVX.jpg" />
							<p>学校联系方式</p>
						</div>
					</div>
				</div>
			</div>
		</div>

		<!-- Code injected by live-server -->
		<script type="text/javascript">
			// <![CDATA[  <-- For SVG support
			if ('WebSocket' in window) {
				(function() {
					function refreshCSS() {
						var sheets = [].slice.call(document
								.getElementsByTagName("link"));
						var head = document.getElementsByTagName("head")[0];
						for (var i = 0; i < sheets.length; ++i) {
							var elem = sheets[i];
							var parent = elem.parentElement || head;
							parent.removeChild(elem);
							var rel = elem.rel;
							if (elem.href && typeof rel != "string"
									|| rel.length == 0
									|| rel.toLowerCase() == "stylesheet") {
								var url = elem.href.replace(
										/(&|\?)_cacheOverride=\d+/, '');
								elem.href = url
										+ (url.indexOf('?') >= 0 ? '&' : '?')
										+ '_cacheOverride='
										+ (new Date().valueOf());
							}
							parent.appendChild(elem);
						}
					}
					var protocol = window.location.protocol === 'http:' ? 'ws://'
							: 'wss://';
					var address = protocol + window.location.host
							+ window.location.pathname + '/ws';
					var socket = new WebSocket(address);
					socket.onmessage = function(msg) {
						if (msg.data == 'reload')
							window.location.reload();
						else if (msg.data == 'refreshcss')
							refreshCSS();
					};
					if (sessionStorage
							&& !sessionStorage
									.getItem('IsThisFirstTime_Log_From_LiveServer')) {
						console.log('Live reload enabled.');
						sessionStorage.setItem(
								'IsThisFirstTime_Log_From_LiveServer', true);
					}
				})();
			} else {
				console
						.error('Upgrade your browser. This Browser is NOT supported WebSocket for Live-Reloading.');
			}
			// ]]>
		</script>

	</div>
</body>

</html>